package com.linhai.scm.entity.client;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.linhai.general.enums.Enum_ClientOnLineType;
import com.linhai.scm.entity.base.BaseBean;

/**
 * 客户在线联系方式
 * @author linhai
 *
 */
@Entity
@Table(name="TB_ClientAddressOnline")
public class ClientAddressOnline  extends BaseBean implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private ClientAddress clientAddress;
	private Enum_ClientOnLineType ClientOnlineType;
	private String ClientOnlineNo;
	
	@ManyToOne
	@JoinColumn(name = "clientAddressID")
	public ClientAddress getClientAddress() {
		return clientAddress;
	}
	
	@Column(name = "ClientOnlineType")
	public Enum_ClientOnLineType getClientOnlineType() {
		return ClientOnlineType;
	}
	@Column(name = "ClientOnlineNo")
	public String getClientOnlineNo() {
		return ClientOnlineNo;
	}
	public void setClientAddress(ClientAddress clientAddress) {
		this.clientAddress = clientAddress;
	}
	public void setClientOnlineType(Enum_ClientOnLineType clientOnlineType) {
		ClientOnlineType = clientOnlineType;
	}
	public void setClientOnlineNo(String clientOnlineNo) {
		ClientOnlineNo = clientOnlineNo;
	}
}
